import { Request, Response } from 'express'
import majorService from '../../service/majorService'

class MajorController {
  // 获取全部
  async findAll(req: Request, res: Response) {
    const majors = await majorService.findAll()
    res.gsmd(majors)
  }
}

export default new MajorController()